/* ========== 表格 ========== */
.el-table {
    // min-height: 500px;
    // 表头背景色
    // .el-table__body-wrapper {
    //     border: 1px solid #f5f5f5;
    // }
    .el-table__header-wrapper th { background-color: $mt-listHeadBg; }
    .el-table__fixed-header-wrapper th { background-color: $mt-listHeadBg; }
    .el-table__fixed-body-wrapper .el-table-column--selection .cell { padding-left: 10px; } // 列表选择列左侧除去padding
    // 暂时解决固定列在滚动条下错位的问题
    .el-table__fixed-body-wrapper .el-table__body { padding-bottom: 20px !important; }
    // 当前点击行的背景色
    .el-table__row.active-row { background-color: $mt-listDetailBg; }
    // ::-webkit-scrollbar  {
    //     height: 12px;
    //     background-color: #F5F5F5;
    //     margin-top: 5px;
    // }
    // /*定义滚动条轨道 内阴影+圆角*/
    // ::-webkit-scrollbar-track  {
    // }
    //
    // /*定义滑块 内阴影+圆角*/
    // ::-webkit-scrollbar-thumb
    // {
    //     border-radius: 2px;
    //     background-color: #A8A8A8;
    // }
    th {
        padding: 6px 0px !important;
        font-size: 14px !important;
        height: 20px !important;
        line-height: 20px !important;
        font-size: 14px;
        color: #a5a6a9;
        font-weight: normal;
    }
    td {
        color: #525459;
    }
    // 表格内输入框高度统一
    .mt-select .el-select .el-input input, .mt-input input {
        height: 26px;
    }
    .el-tag--small {
        height: 20px;
        line-height: 18px;
    }
    .el-table__body {
        .el-table__row {
            .cell {
                .mt-button {
                    padding: 0px; // 操作列首个按钮缩进
                }
            }
        }
    }
    // 列无数据时，默认展示--
    .el-table__row {
      .cell:empty::before {
        content: "--";
      }
    }
}


/* ========== 表单form ========== */
// top位置的label 样式重置
.el-form.el-form--label-top {
    .el-form-item {
         .el-form-item__label {
            line-height: 24px;
            padding: 0;
        }
    }
}
// label样式覆写
.el-form {
    .el-form-item {
         .el-form-item__label {
            line-height: 30px;
            font-size: 14px;
            color: rgba(25, 28, 34, 0.8);
            font-weight: 500;
        }
    }
}

/* ========== el-pagination 分页 ========== */
.el-pagination {
    font-weight: normal;
}
.el-pagination.is-background {
    .el-pager {
        li:not(.disabled).active {
            background-color: $mt-blue !important;
        }
    }
}

/* ========== el-popover 弹出框 ========== */
.el-popover {
    /* 取消popover的padding */
    padding: 0;
}

/* ========== el-tree 树状图 ========== */
.el-tree {
  font-size: 1.4rem;
  &-node {
    border-radius: 4px;
    .is-current {
      background: $activedBg;
      color: $blue;
    }
    &__content {
      height: 34px;
      &:hover {
        background: $hoverBg;
      }
    }
  }
}

/* ========== el-dialog弹窗 ========== */
.el-dialog {
    .el-dialog__header {
        padding: 23px 20px 20px 38px;
        // border-bottom: 1px solid #F7F7F7;
        .el-dialog__title {
            color: rgba($--colour3, .8);
            font-size: $mt-fontsize_large;
            font-weight: 700;
        }
        .el-dialog__headerbtn {
            top: 10px;
            right: 14px;
            .el-dialog__close {
                font-size: 1.8rem;
                font-weight: 700;
            }
        }
        .el-dialog__headerbtn .el-dialog__close {
            margin: 14px 22px 20px;
        }
    }
    .el-dialog__body {
        padding: 0px 38px;
        .el-form-item {
            margin-bottom: 2.2rem;
          }
    }
    .el-dialog__footer {
        padding: 10px 38px 10px;
        border-top: 1px solid #EBEBEB;
    }
}

/* ========== el-cascader级联选择器 ========== */
.el-cascader__tags {
    .el-tag {
        max-width: 75% !important;
    }
}
/* ========== el-input输入框 ========== */
.el-input--small .el-input__inner {
    height: 30px;
    line-height: 30px;
}
.el-form-item__content {
    line-height: 30px;
    position: relative;
    font-size: 14px;
}
.el-input__inner {
    height: 30px;
}
.el-date-editor .el-range__icon,.el-date-editor .el-range-separator, .el-input__icon {
    line-height: 24px;
}
// input输入框清除图标显示问题
.select .el-input .el-input__icon, .el-date-editor .el-input__icon, .el-date-editor .el-range-separator, .el-date-editor .el-range__icon {
    height: 30px !important;
}

/* ========== el-tabs标签 ========== */
// 标签栏颜色改为系统颜色
.el-tabs__item:hover, .el-tabs__item.is-active {
    color: $mt-blue;
}
.el-tabs__active-bar {
    background-color: $mt-blue;
}

.el-table--border td,
.el-table--border th,
.el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed {
  border-right: none;
}
.el-table--border td:last-child,
.el-table--border th:last-child {
  border-right: 1px solid #EBEEF5;
}

/* ========== 开关 ========== */
// 开关颜色改为系统蓝色
.el-switch.is-checked .el-switch__core {
  border-color: $mt-blue;
  background-color: $mt-blue;
}
.el-switch .el-switch__label {
    text-align: center;
}

/* ========== InputNumber 计数器 ========== */
.el-input-number {
    .el-input-number__decrease, .el-input-number__increase {
        height: 28px;
        top: 5px;
        line-height: 30px;
    }
}

// 选择框改为系统蓝色
.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner {
    border-color: $mt-blue;
    background-color: $mt-blue;
}
